package com.project.bean;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

@Data
@Document(indexName = "product_index")
public class ProductESBean {
      @Id
      @Field(type = FieldType.Keyword)
      private String productNum;
      
      @Field(type = FieldType.Keyword)
      private String productName;
      
      @Field(type = FieldType.Text)
      private String img;
      
      @Field(type = FieldType.Text)
      private String describe;
      
      public ProductESBean() {
      }
      
      public ProductESBean(String productNum, String productName, String img, String describe) {
            this.productNum = productNum;
            this.productName = productName;
            this.img = img;
            this.describe = describe;
      }
}
